﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Contoso
{
    public class Enrollment
    {
        public virtual Course Course { set; get; }

        public int CourseID { set; get; }

        public int EnrollmentID { set; get; }

        [DisplayFormat(DataFormatString = "{0:#.#}", ApplyFormatInEditMode = true, NullDisplayText = "No grade")]
        public decimal? Grade { set; get; }

        public virtual Student Student { set; get; }

        public int StudentID { set; get; }




    }
}